//
//  UIButton+Creat.swift
//  Weibo Demo
//
//  Created by 朴裕识 on 15/12/23.
//  Copyright © 2015年 Apple. All rights reserved.
//

import UIKit

extension UIButton {
    //    (imageName: "timeline_icon_retweet", fontSize: 11, title: "转发")
    convenience init(imageName: String, fontSize: Int, title: String) {
        self.init()
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        titleLabel?.font = UIFont.systemFontOfSize(CGFloat(fontSize))
        setTitle(title, forState: UIControlState.Normal)
        setTitleColor(UIColor.lightGrayColor(), forState: UIControlState.Normal)
    }
}
